const initState = {
    menuMode: "inline",
    theme: "dark",
};
const layout = {
    state: {
        menuMode: "inline", // 布局方式 inline horizontal vertical
        theme: "dark",
    },
    mutations: {
        LAYOUT_RESET_STATE: (state) => {
            for (let key in initState) {
                state[key] = initState[key];
            }
        },
        SET_MENU_MODE(state, menuMode) {
            state.menuMode = menuMode;
        },
        SET_THEME(state, theme) {
            state.theme = theme;
        },
    },
    actions: {},
};

export default layout;
